import * as Pinia from 'pinia'
import { createSSRApp } from 'vue'
import App from './App.vue'

import 'virtual:uno.css'

// #ifdef H5
// import VConsole from 'vconsole'

// const _vConsole = new VConsole()

// const x = getComputedStyle(document.documentElement).getPropertyValue('--sat')

// console.log(`Top: ${x}`)
// #endif

export function createApp() {
  const app = createSSRApp(App)
  app.use(Pinia.createPinia())

  return {
    app,
    Pinia,
  }
}
